import request from '@/utils/request'

// 投料记录查询
export const GetListAPI = params => {
  return request({
    url: '/production/feedRecord/list',
    method: 'GET',
    params
  })
}

// 投料记录明细查询
export const GetDetailsAPI = data => {
  return request({
    url: '/production/feedRecord/listDetails/' + data.id,
    method: 'GET',
    params: data
  })
}

// 投料统计
export const StatisticsAPI = data => {
  return request({
    url: '/production/feedRecord/statistics/' + data,
    method: 'GET'
  })
}

// 生产投料
export const FeedRecordAPI = data => {
  return request({
    url: '/production/feedRecord/feed',
    method: 'POST',
    data
  })
}

// 投料撤销
export const FeedRepealAPI = data => {
  return request({
    url: '/production/feedRecord/feedRepeal',
    method: 'POST',
    data
  })
}
